package com.bugbuff.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 后台面板
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "tb_user_info")
public class HomePage {

    @Id
    private ObjectId id; //主键id
    @Indexed
    private Long userId; //用户id

    private String nick_name;//用户名称
    private String logo;//用户头像
    private String tags;//用户标签
    private int sex;//性别
    private int age;//年龄
    private String edu;//学历
    private String city;//居住城市
    private String birthday;//生日
    private String cover_pic;//封面照片
    private String industry;//行业
    private String income;//收入
    private String marriage;//婚姻状态
    private Date created;//最初登录时间
    private Date updated;//最后登录时间


}
